﻿using System.ComponentModel.DataAnnotations;
using MediatR;
using WeatherHistory.Shared.Validation;

namespace WeatherHistory.Api.CommandsQueries.Commands.Forecasts.Add;

public class AddForecastsCommandRequest : IRequest<AddForecastsCommandResponse>
{
    public float Temperature { get; set; }

    [Required]
    [GreaterThan(0L)]
    public long RegionId { get; set; }

    [Required]
    public DateTime DateTime { get; set; }

    [WeatherCondition(false)]
    public string WeatherCondition { get; set; } = null!;
}